
package org.vasil.jouikov.synchro

import groovy.xml.StreamingMarkupBuilder


def getTestXML = {

    def xml = """
<?xml version="1.0"?>
<items>
    <item accwareid='712000514-31' action='desc'>
        <qty>2</qty>
        <stock>0</stock>
        <costprice>10.00</costprice>
        <sellprice>35.00</sellprice>
        <reslprice>30.00</reslprice>
        <drone>0</drone>
        <lot>0</lot>
        <reslprice1>0.00</reslprice1>
        <reslprice2>0.00</reslprice2>
        <reslprice3>0.00</reslprice3>
        <reslqty2>0</reslqty2>
        <reslqty3>0</reslqty3>
        <googlegroup>Stock</googlegroup>
        <itemname><![CDATA[Linksys Wireless 802.11b 11Mbps/802.11g 54Mbps Access Point/Router WRT54G]]></itemname>
        <advname><![CDATA[Linksys WRT54G Wireless 802.11bg 54Mbps Access Point/Router]]></advname>
        <mfrnumber><![CDATA[WRT54G]]></mfrnumber>
        <mfrname><![CDATA[Linksys]]></mfrname>
        <advmfrnumber><![CDATA[WRT54G]]></advmfrnumber>
        <advmfrname><![CDATA[Linksys]]></advmfrname>
        <advprice>0</advprice>
        <mfrlink><![CDATA[]]></mfrlink>
        <keywords><![CDATA[]]></keywords>
        <upccode>0745883553853</upccode>
        <packinclude><![CDATA[<li>Router<li>AC Adapter<li>Ethernet Cable]]></packinclude>
        <packcomment><![CDATA[Manual and Software CD not included]]></packcomment>
        <stockdate>2013-03-28</stockdate>
        <weight>2.78</weight>
        <advert>
            <cnet>1</cnet>
            <grabber>1</grabber>
            <bizrate>1</bizrate>
            <nextag>1</nextag>
            <shopping>1</shopping>
            <powersource>1</powersource>
            <froogle>1</froogle>
        </advert>
        <banner>
            <special>0</special>
            <closeout>0</closeout>
            <comingsoon>0</comingsoon>
            <bestprice>0</bestprice>
            <firstpage>0</firstpage>
            <categorypage>0</categorypage>
            <ebay>0</ebay>
            <cj>1</cj>
            <gadgetpage>0</gadgetpage>
        </banner>
        <wtymask>532</wtymask>
        <wtyprice1>4.20</wtyprice1>
        <wtyprice2>8.75</wtyprice2>
        <wtyprice3>0.00</wtyprice3>
        <category>
            <parentid>NET_MAIN</parentid>
            <parentname><![CDATA[Networking]]></parentname>
            <categoryid>NET_WIR</categoryid>
            <catname><![CDATA[Wireless Network]]></catname>
            <prefname1><![CDATA[Network Device Type]]></prefname1>
            <prefname2><![CDATA[Supported Wireless Standard]]></prefname2>
            <prefname3><![CDATA[]]></prefname3>
            <prefname4><![CDATA[]]></prefname4>
            <prefname5><![CDATA[]]></prefname5>
        </category>
        <vendor>
            <alias>CVS</alias>
            <name><![CDATA[Compuvest Corp.]]></name>
        </vendor>
        <pref1><![CDATA[Access Point/Router W/O Card]]></pref1>
        <pref2><![CDATA[802.11B/G]]></pref2>
        <pref3><![CDATA[]]></pref3>
        <pref4><![CDATA[]]></pref4>
        <pref5><![CDATA[]]></pref5>
        <desc><![CDATA[%3cXML+id%3d%22descr%22%3e%3c%3fxml+version%3d%221.0%22+encoding%3d%22ISO-8859-1%22%3f%3e%3cCNETDESC%3e%3cNAME%3eLinksys+Wireless-G+Broadband+Router+WRT54G+-+Wireless+router+%2b+4-port+switch+-+EN%2c+Fast+EN%2c+802.11b%2c+802.11g%3c%2fNAME%3e%3cINTRO%3eWireless-G+is+the+upcoming+54Mbps+wireless+networking+standard+that%27s+almost+five+times+faster+than+the+widely+deployed+Wireless-B+(802.11b)+products+found+in+homes%2c+businesses%2c+and+public+wireless+hotspots+around+the+country+-+but+since+they+share+the+same+2.4GHz+radio+band%2c+Wireless-G+devices+can+also+interoperate+with+existing+11Mbps+Wireless-B+equipment.%c2%a6Since+both+standards+are+built+in%2c+you+can+protect+your+investment+in+existing+802.11b+infrastructure%2c+and+migrate+to+the+new+screaming+fast+Wireless-G+standard+as+your+needs+grow.%c2%a6The+Linksys+Wireless-G+Broadband+Router+is+really+three+devices+in+one+box.+First%2c+there%27s+the+Wireless+Access+Point%2c+which+lets+you+connect+Wireless-G+or+Wireless-B+devices+to+the+network.+There%27s+also+a+built-in+4-port+full-duplex+10%2f100+Switch+to+connect+your+wired-Ethernet+devices.+Connect+four+PCs+directly%2c+or+daisy-chain+out+to+more+hubs+and+switches+to+create+as+big+a+network+as+you+need.+Finally%2c+the+Router+function+ties+it+all+together+and+lets+your+whole+network+share+a+high-speed+cable+or+DSL+Internet+connection.%c2%a6To+protect+your+data+and+privacy%2c+the+Wireless-G+Broadband+Router+can+encrypt+all+wireless+transmissions.+The+Router+can+serve+as+a+DHCP+Server%2c+has+NAT+technology+to+protect+against+Internet+intruders%2c+supports+VPN+pass-through%2c+and+can+be+configured+to+filter+internal+users%27+access+to+the+Internet.+Configuration+is+a+snap+with+the+web+browser-based+configuration+utility.%c2%a6With+the+Linksys+Wireless-G+Broadband+Router+at+the+center+of+your+home+or+office+network%2c+you+can+share+a+high-speed+Internet+connection%2c+files%2c+printers%2c+and+multi-player+games+with+the+flexibility%2c+speed%2c+and+security+you+need!%3c%2fINTRO%3e%3cMSPEC%3e%3cS%3e%3cM%3e%3cL%3eSystem+Requirements%3c%2fL%3e%3cD%3eMicrosoft+Windows+98%2c+Microsoft+Windows+2000%2c+Microsoft+Windows+Millennium+Edition%2c+Microsoft+Windows+XP%3c%2fD%3e%3c%2fM%3e%3cM%3e%3cL%3eCompliant+Standards%3c%2fL%3e%3cD%3eIEEE+802.3%2c+IEEE+802.3U%2c+IEEE+802.11b%2c+IEEE+802.11g%3c%2fD%3e%3c%2fM%3e%3cM%3e%3cL%3eFeatures%3c%2fL%3e%3cD%3eSwitching%2c+DMZ+port%2c+DHCP+support%2c+NAT+support%2c+VPN%2c+auto-uplink%2c+Stateful+Packet+Inspection+(SPI)%3c%2fD%3e%3c%2fM%3e%3cM%3e%3cL%3eNetwork+%2f+Transport+Protocol%3c%2fL%3e%3cD%3eTCP%2fIP%2c+IPX%2fSPX%2c+PPTP%2c+NetBEUI%2fNetBIOS%2c+IPSec%3c%2fD%3e%3c%2fM%3e%3cM%3e%3cL%3eData+Link+Protocol%3c%2fL%3e%3cD%3eEthernet%2c+Fast+Ethernet%2c+IEEE+802.11b%2c+IEEE+802.11g%3c%2fD%3e%3c%2fM%3e%3cM%3e%3cL%3eRouting+Protocol%3c%2fL%3e%3cD%3eRIP-1%2c+RIP-2%3c%2fD%3e%3c%2fM%3e%3cM%3e%3cL%3eFrequency+Band%3c%2fL%3e%3cD%3e2.4+GHz%3c%2fD%3e%3c%2fM%3e%3cM%3e%3cL%3eData+Transfer+Rate%3c%2fL%3e%3cD%3e54+Mbps%3c%2fD%3e%3c%2fM%3e%3cM%3e%3cL%3eWeight%3c%2fL%3e%3cD%3e1.1+lbs%3c%2fD%3e%3c%2fM%3e%3cM%3e%3cL%3eDimensions+(WxDxH)%3c%2fL%3e%3cD%3e7.3+in+x+6.9+in+x+1.9+in%3c%2fD%3e%3c%2fM%3e%3cM%3e%3cL%3eForm+Factor%3c%2fL%3e%3cD%3eExternal%3c%2fD%3e%3c%2fM%3e%3cM%3e%3cL%3eDevice+Type%3c%2fL%3e%3cD%3eWireless+router+%2b+4-port+switch%3c%2fD%3e%3c%2fM%3e%3cM%3e%3cL%3eProduct+Description%3c%2fL%3e%3cD%3eLinksys+Wireless-G+Broadband+Router+WRT54G+-+wireless+router%3c%2fD%3e%3c%2fM%3e%3c%2fS%3e%3c%2fMSPEC%3e%3cESPEC%3e%3cS%3e%3cT%3eGeneral%3c%2fT%3e%3cM%3e%3cL%3eForm+Factor%3c%2fL%3e%3cD%3eExternal%3c%2fD%3e%3c%2fM%3e%3cM%3e%3cL%3eWidth%3c%2fL%3e%3cD%3e7.3+in%3c%2fD%3e%3c%2fM%3e%3cM%3e%3cL%3eDepth%3c%2fL%3e%3cD%3e6.9+in%3c%2fD%3e%3c%2fM%3e%3cM%3e%3cL%3eHeight%3c%2fL%3e%3cD%3e1.9+in%3c%2fD%3e%3c%2fM%3e%3cM%3e%3cL%3eWeight%3c%2fL%3e%3cD%3e1.1+lbs%3c%2fD%3e%3c%2fM%3e%3cM%3e%3cL%3eDevice+Type%3c%2fL%3e%3cD%3eWireless+router%3c%2fD%3e%3c%2fM%3e%3cM%3e%3cL%3eBuilt-in+Devices%3c%2fL%3e%3cD%3eAntenna%3c%2fD%3e%3c%2fM%3e%3c%2fS%3e%3cS%3e%3cT%3eNetworking%3c%2fT%3e%3cM%3e%3cL%3eFeatures%3c%2fL%3e%3cD%3eSwitching%2c+DMZ+port%2c+DHCP+support%2c+NAT+support%2c+VPN%2c+auto-uplink%2c+Stateful+Packet+Inspection+(SPI)%3c%2fD%3e%3c%2fM%3e%3cM%3e%3cL%3eConnectivity+Technology%3c%2fL%3e%3cD%3eWireless%3c%2fD%3e%3c%2fM%3e%3cM%3e%3cL%3eData+Link+Protocol%3c%2fL%3e%3cD%3eEthernet%2c+Fast+Ethernet%2c+IEEE+802.11b%2c+IEEE+802.11g%3c%2fD%3e%3c%2fM%3e%3cM%3e%3cL%3eNetwork+%2f+Transport+Protocol%3c%2fL%3e%3cD%3eTCP%2fIP%2c+IPX%2fSPX%2c+PPTP%2c+NetBEUI%2fNetBIOS%2c+IPSec%3c%2fD%3e%3c%2fM%3e%3cM%3e%3cL%3eCompliant+Standards%3c%2fL%3e%3cD%3eIEEE+802.3%2c+IEEE+802.3U%2c+IEEE+802.11b%2c+IEEE+802.11g%3c%2fD%3e%3c%2fM%3e%3cM%3e%3cL%3eData+Transfer+Rate%3c%2fL%3e%3cD%3e54+Mbps%3c%2fD%3e%3c%2fM%3e%3cM%3e%3cL%3eStatus+Indicators%3c%2fL%3e%3cD%3eLink+activity%2c+collision+status%2c+port+transmission+speed%2c+port+duplex+mode%2c+power%3c%2fD%3e%3c%2fM%3e%3cM%3e%3cL%3eCommunication+Mode%3c%2fL%3e%3cD%3eFull-duplex%3c%2fD%3e%3c%2fM%3e%3cM%3e%3cL%3eSwitching+Protocol%3c%2fL%3e%3cD%3eEthernet%3c%2fD%3e%3c%2fM%3e%3cM%3e%3cL%3eLine+Coding+Format%3c%2fL%3e%3cD%3eDBPSK%2c+DQPSK%2c+CCK%2c+OFDM%3c%2fD%3e%3c%2fM%3e%3cM%3e%3cL%3eRouting+Protocol%3c%2fL%3e%3cD%3eRIP-1%2c+RIP-2%3c%2fD%3e%3c%2fM%3e%3cM%3e%3cL%3eSpread+Spectrum+Method%3c%2fL%3e%3cD%3eOFDM%3c%2fD%3e%3c%2fM%3e%3cM%3e%3cL%3eFrequency+Band%3c%2fL%3e%3cD%3e2.4+GHz%3c%2fD%3e%3c%2fM%3e%3cM%3e%3cL%3eIntegrated+Switch%3c%2fL%3e%3cD%3e4-port+switch%3c%2fD%3e%3c%2fM%3e%3c%2fS%3e%3cS%3e%3cT%3eExpansion+%2f+Connectivity%3c%2fT%3e%3cM%3e%3cL%3eInterfaces%3c%2fL%3e%3cD%3e1+x+network+-+Ethernet+10Base-T%2f100Base-TX+-+RJ-45+%c2%a6+4+x+network+node+-+Ethernet+10Base-T%2f100Base-TX+-+RJ-45+%c2%a6+1+x+network+-+Radio-Ethernet%3c%2fD%3e%3c%2fM%3e%3c%2fS%3e%3cS%3e%3cT%3ePower%3c%2fT%3e%3cM%3e%3cL%3ePower+Device%3c%2fL%3e%3cD%3ePower+adapter+-+external%3c%2fD%3e%3c%2fM%3e%3c%2fS%3e%3cS%3e%3cT%3eSoftware+%2f+System+Requirements%3c%2fT%3e%3cM%3e%3cL%3eSoftware+Included%3c%2fL%3e%3cD%3eDrivers+and+Utilities%3c%2fD%3e%3c%2fM%3e%3cM%3e%3cL%3eOS+Required%3c%2fL%3e%3cD%3eMicrosoft+Windows+98%2c+Microsoft+Windows+2000%2c+Microsoft+Windows+Millennium+Edition%2c+Microsoft+Windows+XP%3c%2fD%3e%3c%2fM%3e%3cM%3e%3cL%3ePeripheral+%2f+Interface+Devices%3c%2fL%3e%3cD%3eCD-ROM%3c%2fD%3e%3c%2fM%3e%3cM%3e%3cL%3eMin+Processor+Type%3c%2fL%3e%3cD%3e200+MHz%3c%2fD%3e%3c%2fM%3e%3cM%3e%3cL%3eMin+RAM+Size%3c%2fL%3e%3cD%3e64+MB%3c%2fD%3e%3c%2fM%3e%3c%2fS%3e%3cS%3e%3cT%3eEnvironmental+Parameters%3c%2fT%3e%3cM%3e%3cL%3eMin+Operating+Temperature%3c%2fL%3e%3cD%3e32+%c2%b0F%3c%2fD%3e%3c%2fM%3e%3cM%3e%3cL%3eMax+Operating+Temperature%3c%2fL%3e%3cD%3e104+%c2%b0F%3c%2fD%3e%3c%2fM%3e%3cM%3e%3cL%3eHumidity+Range+Operating%3c%2fL%3e%3cD%3e10+-+85%25%3c%2fD%3e%3c%2fM%3e%3c%2fS%3e%3c%2fESPEC%3e%3c%2fCNETDESC%3e%3c%2fXML%3e]]></desc>
        <images>
            <url0><![CDATA[http://node11/ProductImages/0/712000514-31.jpg]]></url0>
            <url1><![CDATA[http://node11/ProductImages/1/712000514-31.jpg]]></url1>
            <url2><![CDATA[http://node11/ProductImages/2/712000514-31.jpg]]></url2>
        </images>
    </item>
    <item accwareid='712000514-32' action='desc'>
        <qty>2</qty>
        <stock>0</stock>
        <costprice>10.00</costprice>
        <sellprice>35.00</sellprice>
        <reslprice>30.00</reslprice>
        <drone>0</drone>
        <lot>0</lot>
        <reslprice1>0.00</reslprice1>
        <reslprice2>0.00</reslprice2>
        <reslprice3>0.00</reslprice3>
        <reslqty2>0</reslqty2>
        <reslqty3>0</reslqty3>
        <googlegroup>Stock</googlegroup>
        <itemname><![CDATA[Linksys Wireless 802.11b 11Mbps/802.11g 54Mbps Access Point/Router WRT54G]]></itemname>
        <advname><![CDATA[Linksys WRT54G Wireless 802.11bg 54Mbps Access Point/Router]]></advname>
        <mfrnumber><![CDATA[WRT54G]]></mfrnumber>
        <mfrname><![CDATA[Linksys]]></mfrname>
        <advmfrnumber><![CDATA[WRT54G]]></advmfrnumber>
        <advmfrname><![CDATA[Linksys]]></advmfrname>
        <advprice>0</advprice>
        <mfrlink><![CDATA[]]></mfrlink>
        <keywords><![CDATA[]]></keywords>
        <upccode>0745883553853</upccode>
        <packinclude><![CDATA[<li>Router<li>AC Adapter<li>Ethernet Cable]]></packinclude>
        <packcomment><![CDATA[Manual and Software CD not included]]></packcomment>
        <stockdate>2013-03-28</stockdate>
        <weight>2.78</weight>
        <advert>
            <cnet>1</cnet>
            <grabber>1</grabber>
            <bizrate>1</bizrate>
            <nextag>1</nextag>
            <shopping>1</shopping>
            <powersource>1</powersource>
            <froogle>1</froogle>
        </advert>
        <banner>
            <special>0</special>
            <closeout>0</closeout>
            <comingsoon>0</comingsoon>
            <bestprice>0</bestprice>
            <firstpage>0</firstpage>
            <categorypage>0</categorypage>
            <ebay>0</ebay>
            <cj>1</cj>
            <gadgetpage>0</gadgetpage>
        </banner>
        <wtymask>532</wtymask>
        <wtyprice1>4.20</wtyprice1>
        <wtyprice2>8.75</wtyprice2>
        <wtyprice3>0.00</wtyprice3>
        <category>
            <parentid>NET_MAIN</parentid>
            <parentname><![CDATA[Networking]]></parentname>
            <categoryid>NET_WIR1</categoryid>
            <catname><![CDATA[Wireless Network]]></catname>
            <prefname1><![CDATA[Network Device Type]]></prefname1>
            <prefname2><![CDATA[Supported Wireless Standard]]></prefname2>
            <prefname3><![CDATA[]]></prefname3>
            <prefname4><![CDATA[]]></prefname4>
            <prefname5><![CDATA[]]></prefname5>
        </category>
        <vendor>
            <alias>CVS</alias>
            <name><![CDATA[Compuvest Corp.]]></name>
        </vendor>
        <pref1><![CDATA[Access Point/Router W/O Card]]></pref1>
        <pref2><![CDATA[802.11B/G]]></pref2>
        <pref3><![CDATA[]]></pref3>
        <pref4><![CDATA[]]></pref4>
        <pref5><![CDATA[]]></pref5>
        <desc><![CDATA[%3cXML+id%3d%22descr%22%3e%3c%3fxml+version%3d%221.0%22+encoding%3d%22ISO-8859-1%22%3f%3e%3cCNETDESC%3e%3cNAME%3eLinksys+Wireless-G+Broadband+Router+WRT54G+-+Wireless+router+%2b+4-port+switch+-+EN%2c+Fast+EN%2c+802.11b%2c+802.11g%3c%2fNAME%3e%3cINTRO%3eWireless-G+is+the+upcoming+54Mbps+wireless+networking+standard+that%27s+almost+five+times+faster+than+the+widely+deployed+Wireless-B+(802.11b)+products+found+in+homes%2c+businesses%2c+and+public+wireless+hotspots+around+the+country+-+but+since+they+share+the+same+2.4GHz+radio+band%2c+Wireless-G+devices+can+also+interoperate+with+existing+11Mbps+Wireless-B+equipment.%c2%a6Since+both+standards+are+built+in%2c+you+can+protect+your+investment+in+existing+802.11b+infrastructure%2c+and+migrate+to+the+new+screaming+fast+Wireless-G+standard+as+your+needs+grow.%c2%a6The+Linksys+Wireless-G+Broadband+Router+is+really+three+devices+in+one+box.+First%2c+there%27s+the+Wireless+Access+Point%2c+which+lets+you+connect+Wireless-G+or+Wireless-B+devices+to+the+network.+There%27s+also+a+built-in+4-port+full-duplex+10%2f100+Switch+to+connect+your+wired-Ethernet+devices.+Connect+four+PCs+directly%2c+or+daisy-chain+out+to+more+hubs+and+switches+to+create+as+big+a+network+as+you+need.+Finally%2c+the+Router+function+ties+it+all+together+and+lets+your+whole+network+share+a+high-speed+cable+or+DSL+Internet+connection.%c2%a6To+protect+your+data+and+privacy%2c+the+Wireless-G+Broadband+Router+can+encrypt+all+wireless+transmissions.+The+Router+can+serve+as+a+DHCP+Server%2c+has+NAT+technology+to+protect+against+Internet+intruders%2c+supports+VPN+pass-through%2c+and+can+be+configured+to+filter+internal+users%27+access+to+the+Internet.+Configuration+is+a+snap+with+the+web+browser-based+configuration+utility.%c2%a6With+the+Linksys+Wireless-G+Broadband+Router+at+the+center+of+your+home+or+office+network%2c+you+can+share+a+high-speed+Internet+connection%2c+files%2c+printers%2c+and+multi-player+games+with+the+flexibility%2c+speed%2c+and+security+you+need!%3c%2fINTRO%3e%3cMSPEC%3e%3cS%3e%3cM%3e%3cL%3eSystem+Requirements%3c%2fL%3e%3cD%3eMicrosoft+Windows+98%2c+Microsoft+Windows+2000%2c+Microsoft+Windows+Millennium+Edition%2c+Microsoft+Windows+XP%3c%2fD%3e%3c%2fM%3e%3cM%3e%3cL%3eCompliant+Standards%3c%2fL%3e%3cD%3eIEEE+802.3%2c+IEEE+802.3U%2c+IEEE+802.11b%2c+IEEE+802.11g%3c%2fD%3e%3c%2fM%3e%3cM%3e%3cL%3eFeatures%3c%2fL%3e%3cD%3eSwitching%2c+DMZ+port%2c+DHCP+support%2c+NAT+support%2c+VPN%2c+auto-uplink%2c+Stateful+Packet+Inspection+(SPI)%3c%2fD%3e%3c%2fM%3e%3cM%3e%3cL%3eNetwork+%2f+Transport+Protocol%3c%2fL%3e%3cD%3eTCP%2fIP%2c+IPX%2fSPX%2c+PPTP%2c+NetBEUI%2fNetBIOS%2c+IPSec%3c%2fD%3e%3c%2fM%3e%3cM%3e%3cL%3eData+Link+Protocol%3c%2fL%3e%3cD%3eEthernet%2c+Fast+Ethernet%2c+IEEE+802.11b%2c+IEEE+802.11g%3c%2fD%3e%3c%2fM%3e%3cM%3e%3cL%3eRouting+Protocol%3c%2fL%3e%3cD%3eRIP-1%2c+RIP-2%3c%2fD%3e%3c%2fM%3e%3cM%3e%3cL%3eFrequency+Band%3c%2fL%3e%3cD%3e2.4+GHz%3c%2fD%3e%3c%2fM%3e%3cM%3e%3cL%3eData+Transfer+Rate%3c%2fL%3e%3cD%3e54+Mbps%3c%2fD%3e%3c%2fM%3e%3cM%3e%3cL%3eWeight%3c%2fL%3e%3cD%3e1.1+lbs%3c%2fD%3e%3c%2fM%3e%3cM%3e%3cL%3eDimensions+(WxDxH)%3c%2fL%3e%3cD%3e7.3+in+x+6.9+in+x+1.9+in%3c%2fD%3e%3c%2fM%3e%3cM%3e%3cL%3eForm+Factor%3c%2fL%3e%3cD%3eExternal%3c%2fD%3e%3c%2fM%3e%3cM%3e%3cL%3eDevice+Type%3c%2fL%3e%3cD%3eWireless+router+%2b+4-port+switch%3c%2fD%3e%3c%2fM%3e%3cM%3e%3cL%3eProduct+Description%3c%2fL%3e%3cD%3eLinksys+Wireless-G+Broadband+Router+WRT54G+-+wireless+router%3c%2fD%3e%3c%2fM%3e%3c%2fS%3e%3c%2fMSPEC%3e%3cESPEC%3e%3cS%3e%3cT%3eGeneral%3c%2fT%3e%3cM%3e%3cL%3eForm+Factor%3c%2fL%3e%3cD%3eExternal%3c%2fD%3e%3c%2fM%3e%3cM%3e%3cL%3eWidth%3c%2fL%3e%3cD%3e7.3+in%3c%2fD%3e%3c%2fM%3e%3cM%3e%3cL%3eDepth%3c%2fL%3e%3cD%3e6.9+in%3c%2fD%3e%3c%2fM%3e%3cM%3e%3cL%3eHeight%3c%2fL%3e%3cD%3e1.9+in%3c%2fD%3e%3c%2fM%3e%3cM%3e%3cL%3eWeight%3c%2fL%3e%3cD%3e1.1+lbs%3c%2fD%3e%3c%2fM%3e%3cM%3e%3cL%3eDevice+Type%3c%2fL%3e%3cD%3eWireless+router%3c%2fD%3e%3c%2fM%3e%3cM%3e%3cL%3eBuilt-in+Devices%3c%2fL%3e%3cD%3eAntenna%3c%2fD%3e%3c%2fM%3e%3c%2fS%3e%3cS%3e%3cT%3eNetworking%3c%2fT%3e%3cM%3e%3cL%3eFeatures%3c%2fL%3e%3cD%3eSwitching%2c+DMZ+port%2c+DHCP+support%2c+NAT+support%2c+VPN%2c+auto-uplink%2c+Stateful+Packet+Inspection+(SPI)%3c%2fD%3e%3c%2fM%3e%3cM%3e%3cL%3eConnectivity+Technology%3c%2fL%3e%3cD%3eWireless%3c%2fD%3e%3c%2fM%3e%3cM%3e%3cL%3eData+Link+Protocol%3c%2fL%3e%3cD%3eEthernet%2c+Fast+Ethernet%2c+IEEE+802.11b%2c+IEEE+802.11g%3c%2fD%3e%3c%2fM%3e%3cM%3e%3cL%3eNetwork+%2f+Transport+Protocol%3c%2fL%3e%3cD%3eTCP%2fIP%2c+IPX%2fSPX%2c+PPTP%2c+NetBEUI%2fNetBIOS%2c+IPSec%3c%2fD%3e%3c%2fM%3e%3cM%3e%3cL%3eCompliant+Standards%3c%2fL%3e%3cD%3eIEEE+802.3%2c+IEEE+802.3U%2c+IEEE+802.11b%2c+IEEE+802.11g%3c%2fD%3e%3c%2fM%3e%3cM%3e%3cL%3eData+Transfer+Rate%3c%2fL%3e%3cD%3e54+Mbps%3c%2fD%3e%3c%2fM%3e%3cM%3e%3cL%3eStatus+Indicators%3c%2fL%3e%3cD%3eLink+activity%2c+collision+status%2c+port+transmission+speed%2c+port+duplex+mode%2c+power%3c%2fD%3e%3c%2fM%3e%3cM%3e%3cL%3eCommunication+Mode%3c%2fL%3e%3cD%3eFull-duplex%3c%2fD%3e%3c%2fM%3e%3cM%3e%3cL%3eSwitching+Protocol%3c%2fL%3e%3cD%3eEthernet%3c%2fD%3e%3c%2fM%3e%3cM%3e%3cL%3eLine+Coding+Format%3c%2fL%3e%3cD%3eDBPSK%2c+DQPSK%2c+CCK%2c+OFDM%3c%2fD%3e%3c%2fM%3e%3cM%3e%3cL%3eRouting+Protocol%3c%2fL%3e%3cD%3eRIP-1%2c+RIP-2%3c%2fD%3e%3c%2fM%3e%3cM%3e%3cL%3eSpread+Spectrum+Method%3c%2fL%3e%3cD%3eOFDM%3c%2fD%3e%3c%2fM%3e%3cM%3e%3cL%3eFrequency+Band%3c%2fL%3e%3cD%3e2.4+GHz%3c%2fD%3e%3c%2fM%3e%3cM%3e%3cL%3eIntegrated+Switch%3c%2fL%3e%3cD%3e4-port+switch%3c%2fD%3e%3c%2fM%3e%3c%2fS%3e%3cS%3e%3cT%3eExpansion+%2f+Connectivity%3c%2fT%3e%3cM%3e%3cL%3eInterfaces%3c%2fL%3e%3cD%3e1+x+network+-+Ethernet+10Base-T%2f100Base-TX+-+RJ-45+%c2%a6+4+x+network+node+-+Ethernet+10Base-T%2f100Base-TX+-+RJ-45+%c2%a6+1+x+network+-+Radio-Ethernet%3c%2fD%3e%3c%2fM%3e%3c%2fS%3e%3cS%3e%3cT%3ePower%3c%2fT%3e%3cM%3e%3cL%3ePower+Device%3c%2fL%3e%3cD%3ePower+adapter+-+external%3c%2fD%3e%3c%2fM%3e%3c%2fS%3e%3cS%3e%3cT%3eSoftware+%2f+System+Requirements%3c%2fT%3e%3cM%3e%3cL%3eSoftware+Included%3c%2fL%3e%3cD%3eDrivers+and+Utilities%3c%2fD%3e%3c%2fM%3e%3cM%3e%3cL%3eOS+Required%3c%2fL%3e%3cD%3eMicrosoft+Windows+98%2c+Microsoft+Windows+2000%2c+Microsoft+Windows+Millennium+Edition%2c+Microsoft+Windows+XP%3c%2fD%3e%3c%2fM%3e%3cM%3e%3cL%3ePeripheral+%2f+Interface+Devices%3c%2fL%3e%3cD%3eCD-ROM%3c%2fD%3e%3c%2fM%3e%3cM%3e%3cL%3eMin+Processor+Type%3c%2fL%3e%3cD%3e200+MHz%3c%2fD%3e%3c%2fM%3e%3cM%3e%3cL%3eMin+RAM+Size%3c%2fL%3e%3cD%3e64+MB%3c%2fD%3e%3c%2fM%3e%3c%2fS%3e%3cS%3e%3cT%3eEnvironmental+Parameters%3c%2fT%3e%3cM%3e%3cL%3eMin+Operating+Temperature%3c%2fL%3e%3cD%3e32+%c2%b0F%3c%2fD%3e%3c%2fM%3e%3cM%3e%3cL%3eMax+Operating+Temperature%3c%2fL%3e%3cD%3e104+%c2%b0F%3c%2fD%3e%3c%2fM%3e%3cM%3e%3cL%3eHumidity+Range+Operating%3c%2fL%3e%3cD%3e10+-+85%25%3c%2fD%3e%3c%2fM%3e%3c%2fS%3e%3c%2fESPEC%3e%3c%2fCNETDESC%3e%3c%2fXML%3e]]></desc>
        <images>
            <url0><![CDATA[http://node11/ProductImages/0/712000514-31.jpg]]></url0>
            <url1><![CDATA[http://node11/ProductImages/1/712000514-31.jpg]]></url1>
            <url2><![CDATA[http://node11/ProductImages/2/712000514-31.jpg]]></url2>
        </images>
    </item>
</items>"""

    return xml
}


def webConnect = { body ->

    try {
        def connection = "http://localhost:8080/Synchro/items".toURL().openConnection()
        connection.setRequestProperty("Content-Type", "application/xml")
        connection.setRequestMethod("POST")
        connection.doOutput = true
        
        connection.outputStream.withWriter { writer ->  writer << body }

        def response = connection.inputStream.withReader { reader -> reader.text }

        if(connection.responseCode == 200 || connection.responseCode == 201) {
            return [status: "OK", body: response]
        }
        return [status: "ERR", body: "${connection.responseCode} : ${connection.responseMessage}"]
    }
    catch(error) {
        return [status: "ERR", body: error]
    }
}

def name='vasil'

println "Hello $name!"

def result = webConnect(getTestXML())
if(result.status == 'OK') {
    println "result=${result}"
}


